import Vue from 'vue'
import Vuex from 'vuex'
import * as getters from './getters'
import * as mutations from './mutations'
import * as actions from './actions'

Vue.use(Vuex)
const store = new Vuex.Store({
//  定义状态
  state: {
    isLogin: false, // 是否登录
    userInfo: {}, // 用户信息
    dictionary: {} // 字典
  },
  getters,
  mutations,
  actions
})

export default store
